package com.ysu.shop.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ysu.shop.pojo.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 耿志龙
 * @since 2020-10-01
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select id,name,img,price from goods ${ew.customSqlSegment}")
    List<Map<String, Object> > getIndexGood(@Param(Constants.WRAPPER) Wrapper wrapper);

}
